#include "gp2x/gl.h"

int render(int frame) {
    float i;

    switch(frame) {
    case 0:
        glBegin(GL_TRIANGLES);
        glVertex3f(-0.5, -0.5, 0.0);
        glVertex3f( 0.5, -0.5, 0.0);
        glVertex3f(-0.5,  0.5, 0.0);
        glEnd();

        glFlip();
        return 0;
    default:
        return 0;
    }
}
